﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Torch_IServices
{
    public interface IAnnouncementBll
    {
        Task<int> AddAnnouncementAsync(int announcementType, string noticeInfo, DateTime EndTime);
        Task<int> EditAnnouncementAsync(int id, int announcementType, string noticeInfo, DateTime EndTime);
        Task<int> DeleteAnnouncementAsync(int id);
        Task<List<AnnouncementDto>> GetAnnouncementAllAsync();
        Task<AnnouncementDto> QueryAnnouncementByIdAsync(int id);
        //Task<List<AnnouncementDto>> QueryAnnouncementByNameAsync(string title);
    }
}
